package com.team.arms.political.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.arms.political.domain.ZPoliRecord;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * mapperMapper接口
 * 
 * @author ruoyi
 * @date 2022-05-16
 */
public interface ZPoliRecordMapper extends BaseMapper<ZPoliRecord>
{
    /**
     * 查询mapper
     * 
     * @param poliRecordId mapper主键
     * @return mapper
     */
    public ZPoliRecord selectZPoliRecordByPoliRecordId(String poliRecordId);

    /**
     * 查询mapper列表
     * 
     * @param poliinfoid mapper
     * @return mapper集合
     */
    @Select(" SELECT * from z_poli_record where poli_info_id=#{poliinfoid}")
    public List<ZPoliRecord> selectZPoliRecordByPoliinfoid(String poliinfoid);


    public List<ZPoliRecord> selectZPoliRecordList(ZPoliRecord zPoliRecord);

    /**
     * 新增mapper
     * 
     * @param zPoliRecord mapper
     * @return 结果
     */
    public int insertZPoliRecord(ZPoliRecord zPoliRecord);

    /**
     * 修改mapper
     * 
     * @param zPoliRecord mapper
     * @return 结果
     */
    public int updateZPoliRecord(ZPoliRecord zPoliRecord);

    /**
     * 删除mapper
     * 
     * @param poliRecordId mapper主键
     * @return 结果
     */
    public int deleteZPoliRecordByPoliRecordId(Long poliRecordId);

    /**
     * 批量删除mapper
     * 
     * @param poliRecordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZPoliRecordByPoliRecordIds(Long[] poliRecordIds);
}
